package 外观模式;

//然后是比较强大、干净、美观的外观
public class WatchTvSwtichFacade implements Operation {
	AirCondition airCondition;
	Light light;
	Television television;
	Screen screen;

	public WatchTvSwtichFacade() {
	}

	public WatchTvSwtichFacade(AirCondition airCondition, Light light,
			Television television, Screen screen) {
		this.airCondition = airCondition;
		this.light = light;
		this.television = television;
		this.screen = screen;
	}

	@Override
	public void on() {
		screen.on();
		airCondition.on();
		light.on();
		television.on();
	}

	@Override
	public void off() {
		television.off();
		screen.off();
		airCondition.off();
		light.off();
	}

}
